# -*- coding: utf-8 -*-
import csv
# Define your item pipelines here
#
# Don't forget to add your pipeline to the ITEM_PIPELINES setting
# See: https://docs.scrapy.org/en/latest/topics/item-pipeline.html
import json


class QuotesbotPipeline(object):
    def process_item(self, item, spider):
        with open("test.txt", "a") as file:
            data = [v for v in dict(item).values()]
            print(data)
            file.write(str(data))
    # return item
